﻿using Sasa.QualityTools.CodeAnalysis.FxCopIntegrator.ViewModels;
using Sasa.QualityTools.CodeAnalysis.SearchEngine;
using System;

namespace Sasa.QualityTools.CodeAnalysis.FxCopIntegrator.Searching
{
    public class WordCompiler : IWordCompiler<ProblemViewModel>
    {
        public Func<ProblemViewModel, bool> Compile(string word)
        {
            SearcherGeneratorFacade facade = new SearcherGeneratorFacade();
            return facade.Generate(word);
        }
    }
}
